package security.web.controller;

import java.util.ArrayList;
import java.util.List;

public class MenuItem {

	private String icon;
	private String name;
	private String url;
	private List<MenuItem> children = new ArrayList<MenuItem>();
	private MenuItem parent;
	private boolean isLeaf;

	public MenuItem() {
		super();
	}
	
	public void addChildren(MenuItem item) {
		children.add(item);
	}

	public boolean isLeaf() {
		return isLeaf;
	}

	public void setLeaf(boolean isLeaf) {
		this.isLeaf = isLeaf;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public List<MenuItem> getChildren() {
		return children;
	}

	public void setChildren(List<MenuItem> children) {
		this.children = children;
	}

	public MenuItem getParent() {
		return parent;
	}

	public void setParent(MenuItem parent) {
		this.parent = parent;
	}
}
